<template>
  <div style="min-height: 300px">
    <a-table :bordered="{cell:true}" :pagination="false" stripe :data="state.logList">
      <template #columns>
        <a-table-column title="同步时间" data-index="date"></a-table-column>
        <a-table-column title="状态" data-index="status"></a-table-column>
        <a-table-column title="同步详情" data-index="content"></a-table-column>
        <a-table-column title="异常错误" data-index="error"></a-table-column>
      </template>
    </a-table>
  </div>
</template>

<script lang="ts" setup>
import {reactive, ref, onMounted, defineProps, defineEmits, nextTick} from "vue";
const emit = defineEmits(['update:modelValue'])
let props = defineProps({
  modelValue : {type : Boolean, default: true},
  entityId : {type : Number, default: 0}
})
let state = reactive({
  logList : [
    { id:1, status:'成功', content : '同步2条销售订单,[S2025030007,S2025010008]',date:'2025-03-12 12:56', error :'' },
    { id:2, status:'成功', content : '同步1条销售订单,[S2025030007,S2025010008]',date:'2025-03-12 13:58', error :'' },
    { id:3, status:'成功', content : '同步0条销售订单',date:'2025-03-12 14:58', error :''},
    { id:4, status:'成功', content : '同步1条销售订单,[S2025030007]',date:'2025-03-12 15:56', error :'' },
  ]
})

onMounted(()=>{
  nextTick(()=>{
  })
})
</script>

<style scoped>

</style>
